home *** CD-ROM | disk | FTP | other *** search
- #include "Shell.RedrawToSp.h"
- #include "Shell.PlainRect.h"
-
-
-
-
- static void Shell_PlainRectDisplayer(
- Shell_convertpoint convert,
- wimp_point rectsize,
- void *reference,
- const wimp_rect *redrawrect
- )
- {
- UNUSED( redrawrect);
- UNUSED( reference);
- UNUSED( convert);
- UNUSED( rectsize);
- /* nothing to do here - a plain rect is just a plain rect */
- }
-
-
-
-
- static BOOL Shell_PlainRectSaver( char *filename, Shell_rectblock *r)
- {
- return Shell_SaveRectAsSprite( filename, r, FALSE /*don't use greyscale palette - use current mode*/);
- }
-
-
-
- Shell_rectblock *Shell_AddPlainRect(
- Shell_windblock *w,
- int xmin, int ymin,
- int xmax, int ymax
- )
- {
- Shell_rectblock *r;
-
- r = Shell_AddRectangle2( w, xmin, ymin, xmax, ymax, Shell_PlainRectDisplayer, NULL);
-
- Shell_MakeRectIcon( r, colour_TRANSPARENT, colour_TRANSPARENT, "R1");
-
- r->saver = Shell_PlainRectSaver;
- r->filetype = 0xff9;
-
- return r;
- }
-
-
-